package com.tencreat.domain.mall.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencreat.common.core.domain.dto.BasePageEntityDTO;
import com.tencreat.common.enums.OrderType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 查询入参
 * @author zixin
 */
@Data
public class MallSupplierFinanceDTO extends BasePageEntityDTO {

    @ApiModelProperty("后端用户ID")
    private Long userId;

    @ApiModelProperty("用户ID")
    private Long uuid;

    @ApiModelProperty("支付人ID")
    private Long disburseUuid;

    @ApiModelProperty("商品ID")
    private Long goodsId;

    @ApiModelProperty(value= "订单编号")
    private String orderSn;

    @ApiModelProperty(value= "开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startCreateTime;

    @ApiModelProperty(value= "结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endCreateTime;

    @ApiModelProperty("订单类型")
    private OrderType orderType;

    @ApiModelProperty(value= "类型1收入2支出")
    private Integer type;

    @ApiModelProperty(value= "供应商手机号")
    private String supplierMobile;

    @ApiModelProperty(value= "供应商名称")
    private String supplierName;

    @ApiModelProperty(value= "货款类型")
    private Integer financeStatus;


    @ApiModelProperty(value= "规格ID")
    private Integer normsId;

    @ApiModelProperty(value= "操作")
    private Integer operation;

    @ApiModelProperty(value= "页数")
    private Integer pageNum;

    @ApiModelProperty(value= "金额")
    private BigDecimal amount;

    @ApiModelProperty(value= "条数")
    private Integer pageSize;

    @ApiModelProperty(value= "app时间搜索")
    private String searchDate;

    @ApiModelProperty(value= "收件人昵称")
    @TableField(exist = false)
    private String nickname;
    @ApiModelProperty(value= "收件人手机号码")
    @TableField(exist = false)
    private String userPhone;
}
